package com.mineplatform.mapper;


import com.mineplatform.domain.M_User;
import com.mineplatform.dto.rep.GetExpertInfoRep;

public class GetExpertInfoRepMapper {

	public static GetExpertInfoRep parse(M_User user) {
		GetExpertInfoRep rep = new GetExpertInfoRep();
		
		rep.setUserid(user.getId());;
		rep.setBecometime(user.getCreateTime());
		rep.setImgpath(user.getUserAvatar());
		rep.setUsername(user.getUserName());
		rep.setNickname(user.getUserNickName());			
		rep.setHot(user.getUserHot());
		rep.setOrder(user.getUserOrder());
		rep.setPrice(user.getPrice());
		rep.setPrisecount(user.getPraiseCount());
		
		return rep;
	}
}
